/**
 * @Time: 2018/11/19 15:13 
 * @Author: wangmin
 * @File: app.go
 * @Software: GoLand
 */
package models

import "github.com/astaxie/beego/orm"

type App struct {
	Ormer     orm.Ormer
	FlagFiled map[string]map[int8]string
}

// 状态字段文本值
func (m *App) GetFlagFieldText(field string, value int8) string {
	text, _ := m.FlagFiled[field][value]
	return text
}
